// ts 路径别名配置：baseUrl: "./src"

import BlankLayout from 'layouts/blankLayout'
import BasicLayout from 'layouts/basicLayout'
import DashBoard from 'pages/DashBoard'
import Login from 'pages/Login'
import NotFound from 'pages/NotFound'

import Cart from 'pages/Cart'
import Book from 'pages/Book'

import { Counter } from 'pages/Counter/Counter'

export const routes: any = [
  {
    path: '/',
    element: <Login />,
  },
  {
    path: '/basic',
    element: <BasicLayout />,
    children: [
      {
        path: 'counter',
        element: <Counter />,
      },
      {
        path: 'dashboard',
        element: <DashBoard />,
      },
      {
        path: 'cart',
        element: <Cart />,
      },
      {
        path: 'book',
        element: <Book />,
      },
    ],
  },
  {
    path: '*',
    element: <NotFound />,
  },
]
